@font-face {
    font-family: 'iconfont';
    src: url('iconfont.eot');
    src: url('iconfont.eot?#iefix') format('embedded-opentype'), url('../iconfont/iconfont.woff2') format('woff2'), url('iconfont.woff') format('woff'), url('iconfont.ttf') format('truetype'), url('iconfont.svg#iconfont') format('svg');
}

.w {
    width: 1200px;
    margin: 0 auto;
}

* {
    box-sizing: border-box;
}

nav {
    position: relative;
    width: 100%;
    height: 48px;
    background-color: #83D347;
    a {
        display: block;
        float: left;
        font-size: 16px;
        color: #fff;
        font-weight: 600;
        padding: 12px 30px;
        &:nth-of-type(1) {
            padding: 12px 0 12px 5px;
            width: 240px;
            font-size: 18px;
            font-weight: 500;
            color: #83D347;
            background-color: #F8FFF0;
        }
        span {
            font-family: 'iconfont';
        }
    }
    aside {
        position: absolute;
        top: 48px;
        left: 160px;
        z-index: 100;
        width: 240px;
        background-color: #F8FFF0;
        display: none;
        ul {
            li {
                a {
                    display: flex;
                    justify-content: space-between;
                    padding: 0 20px;
                    span {
                        font-size: 16px;
                        color: #83D347;
                        &:nth-of-type(2) {
                            font-family: 'iconfont';
                        }
                    }
                }
            }
        }
    }
}

//banner
.tb_promo {
    position: relative;
    width: 1519px;
    height: 450px;
    overflow: hidden;
    ul {
        display: flex;
        position: absolute;
        left: 0;
        top: 0;
        li {
            width: 1519px;
            img {
                width: 100%;
                height: 100%;
            }
        }
    }
    #promo_nav {
        position: absolute;
        top: 375px;
        left: 600px;
        z-index: 100;
        li {
            width: 50px;
            height: 10px;
            border-radius: 5px;
            background-color: rgba(223, 218, 218, .3);
            float: left;
            margin: 0 5px;
        }
    }
}

.active {
    background-color: #fff !important;
}

//公告
.ads {
    width: 100%;
    height: 80px;
    background: url('../images/ads.png') no-repeat;
    background-size: 100% 100%;
    margin-top: 10px;
    p {
        line-height: 80px;
        color: #83D347;
        font-size: 16px;
        margin-left: 300px;
    }
}

.goodsContainer {
    // margin-top: 25px;
    .title {
        height: 80px;
        line-height: 80px;
        span {
            font-size: 16px;
            color: black;
            padding: 0 10px;
            cursor: pointer;
            &:nth-of-type(1) {
                border-right: 1px solid #eee;
                color: #83D347;
            }
        }
    }
    .goodsList {
        // width: 200px;
        // height: 300px;
        // background-color: red;
        &:nth-of-type(2) {
            // background-color: blue;
            display: none;
        }
        ol {
            display: flex;
            li {
                position: relative;
                width: 222px;
                height: 348px;
                border: 1px solid #e8e8e8;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                margin-right: 24px;
                &:hover {
                    box-shadow: 0px 0px 20px rgba(192, 189, 189, 0.685);
                }
                &:hover .addCarPurchase {
                    display: block;
                }
                &:nth-of-type(5) {
                    margin-right: 0;
                }
                a {
                    img {
                        width: 176px;
                        height: 176px;
                        margin-bottom: 40px;
                    }
                }
                .text1 {
                    font-size: 16px;
                    color: #333;
                    margin-bottom: 5px;
                }
                .text2 {
                    font-size: 14px;
                    color: #999;
                    margin-bottom: 12px;
                }
                p {
                    font-size: 24px;
                    color: #c81c3a;
                    margin-bottom: 20px;
                }
                .addCarPurchase {
                    position: absolute;
                    left: 10px;
                    bottom: 24px;
                    width: 220px;
                    height: 40px;
                    display: none;
                    span {
                        display: inline-block;
                        width: 100px;
                        height: 40px;
                        line-height: 40px;
                        text-align: center;
                        float: left;
                    }
                    .addCar {
                        border: 1px solid #65C722;
                        border-top-left-radius: 20px;
                        border-bottom-left-radius: 20px;
                        background-color: #fff;
                        font-size: 16px;
                        color: #65C722;
                        cursor: pointer;
                    }
                    .purchase {
                        border: 1px solid #65C722;
                        border-top-right-radius: 20px;
                        border-bottom-right-radius: 20px;
                        background-color: #65C722;
                        font-size: 16px;
                        color: #fff;
                        cursor: pointer;
                    }
                }
            }
        }
    }
}

// 品牌馆
.brand-container {
    position: relative;
    h3 {
        font-size: 24px;
        color: #333;
        margin: 90px 0 35px 0;
        font-weight: 500;
    }
    .brands {
        position: relative;
        width: 1200px;
        height: 110px;
        overflow: hidden;
        ul {
            position: absolute;
            top: 0;
            left: 0;
            display: flex;
            li {
                margin-right: 20px;
                &:hover {
                    box-shadow: 0px 0px 20px rgba(192, 189, 189, 0.685);
                }
                img {
                    width: 220px;
                    height: 110px;
                }
            }
        }
    }
    a {
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 16px;
        color: #fff;
        background-color: #999999;
        border-radius: 50%;
        text-align: center;
    }
    #prev {
        position: absolute;
        top: 100px;
        left: -50px;
    }
    #next {
        position: absolute;
        top: 100px;
        right: -40px;
    }
}

//热销产品
.hotSaleContainer {
    h3 {
        font-size: 24px;
        color: #333;
        margin: 90px 0 35px 0;
        font-weight: 500;
    }
    img {
        height: 524px;
        width: 100%;
        margin-bottom: 20px;
    }
    ol {
        display: flex;
        flex-wrap: wrap;
        li {
            position: relative;
            width: 222px;
            height: 348px;
            border: 1px solid #e8e8e8;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            margin-right: 22px;
            margin-bottom: 25px;
            &:hover .addCarPurchase {
                display: block;
            }
            &:hover {
                box-shadow: 0px 0px 20px rgba(192, 189, 189, 0.685);
            }
            &:nth-of-type(5n) {
                margin-right: 0;
            }
            a {
                img {
                    width: 176px;
                    height: 176px;
                    margin-bottom: 40px;
                }
            }
            .text1 {
                font-size: 16px;
                color: #333;
                margin-bottom: 5px;
            }
            .text2 {
                font-size: 14px;
                color: #999;
                margin-bottom: 12px;
            }
            p {
                font-size: 24px;
                color: #c81c3a;
                margin-bottom: 20px;
            }
            .addCarPurchase {
                position: absolute;
                left: 10px;
                bottom: 24px;
                width: 220px;
                height: 40px;
                display: none;
                span {
                    display: inline-block;
                    width: 100px;
                    height: 40px;
                    line-height: 40px;
                    text-align: center;
                    float: left;
                }
                .addCar {
                    border: 1px solid #65C722;
                    border-top-left-radius: 20px;
                    border-bottom-left-radius: 20px;
                    background-color: #fff;
                    font-size: 16px;
                    color: #65C722;
                    cursor: pointer;
                }
                .purchase {
                    border: 1px solid #65C722;
                    border-top-right-radius: 20px;
                    border-bottom-right-radius: 20px;
                    background-color: #65C722;
                    font-size: 16px;
                    color: #fff;
                    cursor: pointer;
                }
            }
        }
    }
}